import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'demo.dart';

class DemoView extends StatelessWidget {
  const DemoView({super.key});

  @override
  Widget build(BuildContext context) {
    return GetBuilder<DemoController>(
        init: DemoController(),
        builder: (controller) => Container(
      child: Row(
        children: [
          TextButton(onPressed: () {
            controller.checkPermission(context);
          }, child: Text('权限申请'))
        ],
      ),
    ));
  }
}
